function GetUpdate() {
		

	var updateData = [
		['1','1.0.0.1','2012-05-05 12:00:00','更新1'],
		['2','1.0.0.2','2012-05-06 12:00:00','更新2'],
		['3','1.0.0.3','2012-05-07 12:00:00','更新3'],
		['4','1.0.0.4','2012-05-08 12:00:00','更新4'],
		['5','1.0.0.5','2012-05-09 12:00:00','更新5']
	];


	var updateStore = new Ext.data.ArrayStore({
				fields : [{
							name : 'id'
						}, {
							name : 'version'
						}, {
							name : 'time'
						}, {
							name : 'remark'
						}]
			});

	updateStore.loadData(updateData);
	var sm = new Ext.grid.CheckboxSelectionModel();
	var updategrid = new Ext.grid.GridPanel({
				store : updateStore,
				columns : [sm, {
							id : 'id',
							header : 'id',
							width : 10,
							sortable : true,
							dataIndex : 'id',
							hidden : true
						}, {
							header : '版本',
							width : 100,
							sortable : true,
							dataIndex : 'version'
						}, {
							header : '上传时间',
							width : 150,
							sortable : true,
							dataIndex : 'time'
						}, {
							header : '备注',
							width : 100,
							sortable : true,
							dataIndex : 'remark'
						}],
				sm : sm,
				tbar : [{
							text : '上传',
							tooltip : '上传',
							iconCls : 'add',
							handler : function() {
								upload_update(uploadReturn);
							}
						},{
							text : '删除',
							tooltip : '删除',
							iconCls : 'delete',
							ref : '../removeBtn',
							disabled : true,
							handler : function() {
								
							}
						},'-',{
							text : '更新',
							tooltip : '更新',
							iconCls : 'modify',
							ref : '../testBtn',
							disabled : true,
							handler : function() {
								
								
											
							}
						}],
				stripeRows : true,
				autoExpandColumn : 'id',
				height : 300,
				region : 'north'
			});
	updategrid.getSelectionModel().on('selectionchange', function(sm) {
				updategrid.removeBtn.setDisabled(sm.getCount() < 1);
				updategrid.testBtn.setDisabled(sm.getCount() != 1);
				updategrid.allBtn.setDisabled(sm.getCount() != 1);
			});
			
	function uploadReturn(){
		
	}


	return updategrid;
}

function upload_update(uploadReturn){

    var fp = new Ext.FormPanel({
        fileUpload: true,
        width: 500,
        frame: true,
        layout : 'form',
        autoHeight: true,
        bodyStyle: 'padding: 10px 10px 0 10px;',
        labelWidth: 50,
        defaults: {
            anchor: '95%',
            allowBlank: false,
            msgTarget: 'side'
        },
        items: [
        	{
					xtype: 'textfield',
					name: 'clientupdate.version',
					id  : 'clientupdate.version',
					fieldLabel: '版本',
					anchor: '95%'
			},{
					xtype: 'textfield',
					name: 'clientupdate.clientupdateDesc',
					id  : 'clientupdate.clientupdateDesc',
					fieldLabel: '描述',
					anchor: '95%'
			},
        	{   
            xtype: 'fileuploadfield',   
            id: 'upload',   
            name: 'upload',   
            emptyText: '选择一个更新包',   
            fieldLabel: '更新包',   
            buttonText: '',   
            buttonCfg: {   
                iconCls: 'add'  
            }   
        }]

    });

	var uploadWindows = new Ext.Window({
				layout : 'form',
				width : 500,
				height : 175,
				title : "上传",
				modal : true,
				resizable : true,
				maximizable : true,
				iconCls : 'update',
				items : [fp],
				plain : true
				
			});
	uploadWindows.addButton({
				text : "上传",
				handler : function() {
					if(fp.getForm().isValid()){
		                fp.getForm().submit({
		                    url: 'system/SetClientupdate.do',
		                    waitMsg: '正在上传文件...',
		                    success: function(fp, o){
		                    	uploadReturn();
		                        uploadWindows.close();
		                    },
		                    failure : function(form, action) {
		                    	uploadReturn();
		                    	uploadWindows.close();
		                    }
		                });
                	}					
				}
			});
	uploadWindows.addButton({
				text : '取 消',
				handler : function() {
					uploadWindows.close();
				}
			});
	uploadWindows.show();
}